<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户注册</title>
    <!-- 引入Bootstrap CSS -->
    <link rel="stylesheet" href="./common/css/bootstrap.min.css">
    <style>
        .container {
            max-width: 400px;
            margin-top: 50px;
            background-color: rgba(255,255,255,0.7);
            padding: 20px;
            border-radius: 15px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }

        h2 {
            text-align: center;
            margin-bottom: 30px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        label {
            font-weight: bold;
        }

        button {
            width: 100%;
        }

        a {
            display: block;
            text-align: center;
            margin-top: 15px;
        }
        .footer {
            margin-top: 30px;
            font-size: 20px;
            text-align: center;
            color: #ffffff; /* 适当调整颜色以适应你的页面主题 */
        }
    </style>
</head>

<body style="background-image: url(images/reg_new.jpg?v=3);background-repeat: no-repeat;background-size: 100%;width:100%;height: 100%;">
    <div class="container">
        <h2>用户注册</h2>
        <form id="registrationForm" action="register.php" method="post">
            <div class="form-group">
                <label for="username">用户名：</label>
                <input type="text" class="form-control" id="username" name="username" required>
            </div>
            <div class="form-group">
                <label for="password">密码：</label>
                <input type="password" class="form-control" id="password" name="password" required>
            </div>
            <div class="form-group">
                <label for="confirmPassword">确认密码：</label>
                <input type="password" class="form-control" id="confirmPassword" name="confirmPassword" required>
            </div> 
            <div class="form-group">
                <label for="email">邮箱：</label>
                <input type="email" class="form-control" id="email" name="email" required>
            </div>
            <div class="form-group">
                <label for="phone">电话：</label>
                <input type="tel" class="form-control" id="phone" name="phone">
            </div>
            <button type="submit" class="btn btn-primary">注册</button>
            <a href="login.html">返回登录</a>
        </form>
    </div>  
    <!-- 引入jQuery和Bootstrap的JS文件 -->
    <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>

</body>

</html>
